package cn.edu.bcu.ls.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.edu.bcu.ls.entity.Put;
import cn.edu.bcu.ls.serviceImpl.PutService;
import cn.edu.bcu.ls.serviceImpl.WorkService;
import io.swagger.annotations.ApiOperation;

@RestController
public class PutController {
	@Autowired
	private PutService putService;
	
	@ApiOperation(value = "提交作业，传入你想要的传的值就行")
	@PostMapping(value="Work/put")
	public boolean insertPut(Put put) {
		if (putService.insertSelective(put) >0) {
			return true;
		}else {
			return false;
		}
	}
}
